import requset from "@/utils/request";

const platForm=JSON.parse(localStorage.getItem('u-data'))?JSON.parse(localStorage.getItem('u-data')).platForm:'wxapp'
const version=JSON.parse(localStorage.getItem('u-data'))?JSON.parse(localStorage.getItem('u-data')).version:'4.5.14'

export function getPondList() {
  return requset({
    url:"plugin/pond/api/pond/index",
    headers: { 'content-type': 'application/x-www-form-urlencoded','X-App-Platform':platForm,'X-App-Version':version },
  })
}
export function getPondLottery() {
  return requset({
    url:"plugin/pond/api/pond/lottery",
    headers: { 'content-type': 'application/x-www-form-urlencoded','X-Access-Token':localStorage.getItem('u-token'),'X-App-Platform':platForm,'X-App-Version':version},
  })
}